package com.hjlsoft.aftp.data;

import java.io.IOException;

import com.hjlsoft.aftp.token.Token;

public interface DataStoreService {
	
	void init();
	
	DataHandle create(Token token, DataMeta dataMeta) throws IOException;
	
	String getDataMD5(Token token) throws IOException;
	
	boolean commit(Token token) throws IOException;
	
	DataMeta getDataMeta(String id) throws IOException;
	
	void delete(String id) throws IOException;
	
}
